package top.lenjon.lib.service;

import com.github.pagehelper.PageInfo;
import top.lenjon.lib.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import top.lenjon.lib.entity.UserDetail;

import java.util.List;

/**
 * <p>
 * 管理员 服务类
 * </p>
 *
 * @author wei
 * @since 2020-11-09
 */
public interface IAdminService extends IService<Admin> {

    boolean resetPassword(int id, int type);
    boolean addAdmin(Admin admin);
    boolean addUser(UserDetail userDetail);
    boolean deleteAdmin(int id);
    boolean deleteUser(int id);
    PageInfo getListByType(int type,int pageNum);
    Admin getAdminByUsername(String username);
}
